package code09_final和抽象类;

public class Bus extends MotoVehicle {

	private int seatCount; // 座位数

	public Bus(String no, String name, int seatCount) {
		super(no, name);
		this.seatCount = seatCount;
	}

	public int getSeatCount() {
		return seatCount;
	}

	public void setSeatCount(int seatCount) {
		this.seatCount = seatCount;
	}

	@Override
	public int calcRent(int day) {
		int sum = 0;
		if(seatCount <= 16) {
			sum = day * 800;
		}else {
			sum = day * 1300;
		}
		return sum;
	}

}
